package com.bst.bsj.front;

import java.util.HashSet;
import java.util.Set;

public class FrontConstants {

  /**
   * 后台子系统
   */
  public static final String SUB_SYSTEM = "front";

  public static final String TEL400 = "4001752016";

  public final static String REG_MOBILE_CODE_TYPE = "mob_reg";

  public final static String CODE_STATUS_WAIT = "W";

  public final static String CODE_STATUS_COMPLATE = "C";

  /**
   * 验证码类型集合
   */
  public static final Set<String> VCODE_TYPE_SETS = new HashSet<String>() {

    {
      add(VCODE_TYPE_REGISTER_FOR_MERCHANT);
      add(VCODE_TYPE_LOGIN_FOR_MERCHANT);
      add(VCODE_TYPE_RESET_PASSWORD);
    }
  };

  /**
   * 手机验证码在注册的时候使用
   */
  public static final String VCODE_TYPE_REGISTER_FOR_MERCHANT = "c_reg";

  /**
   * 手机验证码在登录的时候使用
   */
  public static final String VCODE_TYPE_LOGIN_FOR_MERCHANT = "c_login";

  /**
   * 重置密码
   */
  public static final String VCODE_TYPE_RESET_PASSWORD = "c_sms";

  /**
   * 更新access_token同步信号量
   */
  public final static String ACCESS_TOKEN_UPDATE_MUX = "access_token_update_mux";

  /**
   * 获取access_token同步信号量
   */
  public final static String ACCESS_TOKEN_MUX = "access_token_mux";

  public final static String ACCESS_TOKEN = "access_token";

  /**
   * 获取jsapi_ticket 同步信号量
   */
  public final static String JSAPI_TICKET_MUX = "jsapi_ticket_mux";

  /**
   * 更新jsapi_ticket同步信号量
   */
  public final static String JSAPI_TICKET_UPDATE_MUX = "jsapi_ticket_update_mux";

  public final static int ACCESS_TOKEN_EXPIRE = 5000;

  /**
   * JSTICKET
   */
  public final static int JSAPI_TICKET_EXPIRE = 5000;

}
